package com.example.common.to.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class SkuEsModel {
    //商品id
    private Long skuId;

    private Long spuId;
    //商品标题
    private String skuTitle;
    //商品价格
    private BigDecimal skuPrice;
    //商品图片
    private String skuImg;

    private Long saleCount;
    //商品库存
    private Boolean hasStock;
    //商品热度评分
    private Long hotScore;

    private Long brandId;

    private Long catalogId;

    private String brandName;

    private String brandImg;

    private String catalogName;

    private List<Attrs> attrs;

    @Data
    public static class Attrs {

        private Long attrId;

        private String attrName;

        private String attrValue;
    }
}
